//
//  JoBackCollectionViewCell.m
//  RunningMan
//
//  Created by 姜勇利 on 16/5/20.
//  Copyright © 2016年 JohnnyB. All rights reserved.
//

#import "JoBackCollectionViewCell.h"

@implementation JoBackCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backImage = [[UIImageView alloc]init];
        self.backImage.userInteractionEnabled = YES;
        [self.contentView addSubview:self.backImage];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
}

- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    self.backImage.frame = self.bounds;
}

- (UICollectionViewLayoutAttributes *)preferredLayoutAttributesFittingAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    return layoutAttributes;
}


@end
